﻿using System;
using System.Collections.Generic;
using Autodesk.Revit.DB;
using YJKGeometryFuncs;

namespace YJKRevitStructModel.Forms
{
	internal class ViewGenLevelDictinct : IEqualityComparer<Element>
	{
		public bool Equals(Element x, Element y)
		{
			return Geometry.IsEqual((x as ViewPlan).GenLevel.Elevation, (y as ViewPlan).GenLevel.Elevation);
		}

		public int GetHashCode(Element obj)
		{
			return obj.ToString().GetHashCode();
		}
	}
}
